/**
 iTextUploader
 (C) 2008 Asgl (myselftdev@gmail.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.*/

/* Revision: $Id: iTextUploader.h 12 2008-07-25 10:05:51Z myselftdev $ */

#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UITextView.h>
//#import <UIKit/UIFont.h>
#import "FileUpload.h"
#import "PreferencesPanel.h"

@interface MainView : UIView
{
	UINavigationBar  *navBar;
	UINavigationItem *navItem;
    UITextView     *textView;
    PreferencesPanel *prefsPanel;
    UITextView     *aboutView;
    UITransitionView   *transView;
    NSString		*mainText;
    
    // Pages:
    // 0 - main page
    // 1 - preferences
    // 2 - about page
    int				currentPage;
}

- (id)initWithFrame:(CGRect)frame;
- (void)dealloc;
- (UINavigationBar *)createNavBar:(CGRect)rect;
- (void)navigationBar:(UINavigationBar *)navbar buttonClicked:(int)button;
- (void)flipTo:(int)page;
- (void) setNavBar;

- (void)uploadFile;
@end

@interface MyApp : UIApplication
{
    UIWindow *window;
    MainView *mainView;
}

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification;
@end